package day1;

/**
 * ClassName：Test
 *
 * @Author：小鱼
 * @Create：2025-08-18 9:48
 */
public class Test {
    public static void main(String[] args) {
        //     / by zero        int a = 10/0;
        //System.out.println(a);

//        String string = "123o";//.NumberFormatException
//        int e1 = Integer.parseInt(string);
//        System.out.println("e1:  "+e1);
//        int e2 = Integer.parseInt("123");
//        System.out.println("e2:  "+e2);

//        Object o = new Object();
//        String s = (String) o;//ClassCastException

//        int[] arr = {1,2,3};
//        arr = null;
//        System.out.println(arr[0]);//.NullPointerException
//        System.out.println(arr[4]);//.NullPointerException

//        int c1;
//        final int c2;
//        System.out.println(c1);


        System.out.println("hello");
        test1();
        System.out.println("world");


    }
    public static  void test1(){
        test2();
    }
    public static  void test2(){
        test3();
    }
    public static  void test3(){
        int a = 10/0;
    }
}
